We currently only update the scale when fully expanded. In order
to fix the initial expand transition, also update the scale
when fully unexpanded.
Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3331>
// Compute the scale we'll need once everything is updated,
// unless we are currently transitioning
- if (this._expandFraction === 1) {
+ if (this._expandFraction === 0 || this._expandFraction === 1) {
const [, natWidth] = this.get_preferred_width(-1);
const [, natHeight] = this.get_preferred_height(natWidth);
const totalSpacing = (nWorkspaces - 1) * spacing;